package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.ETbBankAccount;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QTbBankAccount is a Querydsl query type for ETbBankAccount
 */
@Label("账户信息表查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QTbBankAccount extends RelationalPathBase<ETbBankAccount> {

    private static final long serialVersionUID = 106657530;

    public static final QTbBankAccount tbBankAccount = new QTbBankAccount("tb_bank_account");

    public class PrimaryKeys {

        public final PrimaryKey<ETbBankAccount> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCompany> tbBankAccountBaseCompany1Fk = createForeignKey(baseCompanyId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbBankaccountRecord> _tbBankaccountRecordTbBankAccount1Fk = createInvForeignKey(id, "tb_bank_account_id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbFuelRecharge> _tbFuelRechargeTbBankAccount1Fk = createInvForeignKey(id, "tb_bank_account_id");

    }

    public final StringPath accountName = createString("accountName");

    public final StringPath baseCompanyId = createString("baseCompanyId");

    public final StringPath commont = createString("commont");

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final NumberPath<Float> money = createNumber("money", Float.class);

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QTbBankAccount(String variable) {
        super(ETbBankAccount.class, forVariable(variable), "null", "tb_bank_account");
        addMetadata();
    }

    public QTbBankAccount(String variable, String schema, String table) {
        super(ETbBankAccount.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QTbBankAccount(Path<? extends ETbBankAccount> path) {
        super(path.getType(), path.getMetadata(), "null", "tb_bank_account");
        addMetadata();
    }

    public QTbBankAccount(PathMetadata<?> metadata) {
        super(ETbBankAccount.class, metadata, "null", "tb_bank_account");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(accountName, ColumnMetadata.named("accountName").withIndex(2).ofType(Types.VARCHAR).withSize(100));
        addMetadata(baseCompanyId, ColumnMetadata.named("base_company_id").withIndex(5).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(commont, ColumnMetadata.named("commont").withIndex(4).ofType(Types.VARCHAR).withSize(100));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(6).ofType(Types.VARCHAR).withSize(8));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(45).notNull());
        addMetadata(money, ColumnMetadata.named("money").withIndex(3).ofType(Types.REAL).withSize(12));
    }

}

